package com.woniu.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.util.List;

/**
 * 用户下单所需数据
 */
@Data
@ApiModel("用户下单的form数据")
public class DownOrderForm {
    /*
    地址id
     */
    @ApiModelProperty("地址id")
    @NotNull(message = "地址id不能为空")
    private Integer addressId;
    /*
    商品id集合
     */
    @ApiModelProperty("商品id集合")
    @NotNull(message = "商品id集合id不能为空")
    private List<Integer> goodsIds;
    //private
}
